package org.neframework.webtest.service;

import java.util.List;
import java.util.Map;

import com.tmsps.neframework.core.common.page.Page;
import com.tmsps.neframework.jpa.base.BaseService;
import com.tmsps.neframework.jpa.sql.param.NeParamList;

public class FileService extends BaseService {

	public static void main(String[] args) {
		FileService s = new FileService();

	}

	public List<Map<String, Object>> selectFileList(String srh_filename,
			Map<String, String> sort_params, Page page) {
		String sql = "select * from t_fk_file t "
				+ "where t.status=0 and (t.file_name like ?) order by t.created desc";
		NeParamList params = NeParamList.makeParams();
		params.addLike(srh_filename);

		List<Map<String, Object>> list = jcn.queryForList(sql, params, sort_params, page);
		return list;
	}

}
